<%@page import="javax.sound.midi.SysexMessage"%>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
	String pageUrl = "";
	String method = request.getMethod().toUpperCase();
	if ("GET".equals(method) && null != request.getQueryString()) {
		String[] paramGet = request.getQueryString().split("&");
		for (int i = 0; i < paramGet.length; i++) {
			pageUrl += "{name:'"
					+ paramGet[i]
							.substring(0, paramGet[i].indexOf("="))
					+ "',value:'"
					+ paramGet[i]
							.substring(paramGet[i].indexOf("=") + 1)
					+ "'},";
		}
	} else if ("POST".equals(method)) {
		Enumeration pageEnum = request.getParameterNames();
		while (pageEnum.hasMoreElements()) {
			String paramName = (String) pageEnum.nextElement();
			String[] values = request.getParameterValues(paramName);
			for (int i = 0; i < values.length; i++) {
				if (null != values[i] && values[i].length() > 0)
					pageUrl += "{name:'" + paramName + "',value:'"
							+ values[i] + "'},";
			}
		}
	}
	String pathLigerUi = request.getContextPath();
	System.out.println(pageUrl);
%>